﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace ERPStore.Services
{
	/// <summary>
	/// Service d'envoi de mail
	/// </summary>
	[ServiceContract(Name = "EmailerService"
		, Namespace = "http://www.erpstore.net/2011/09/29")]
	public interface IEmailerService
	{
		[OperationContract]
		DateTime Ping();

		void Send(System.Net.Mail.MailMessage message);

		// void Send(System.Net.Mail.MailMessage message, DateTime startDate);

		[OperationContract]
		void Send(Models.MailMessage mailTemplate);

		[OperationContract(Name="ScheduleSend")]
		void Send(Models.MailMessage mailTemplate, DateTime? startDate);

	}
}
